
define i32 @cast1()
{
        %x = add i32 0, ptrtoint (i32* null to i32)
        ret i32 %x
}

define i32 @getelementptr1()
{
        %x = add i32 0, ptrtoint (i32* getelementptr(i32* null, i32 0) to i32)
        ret i32 %x
}

define i64* @sizeof0()
{
        %x = getelementptr i64* null, i64 1
        ret i64* %x
}

define i64 @sizeof1()
{
        %x = getelementptr i64* null, i64 1
        %y = ptrtoint i64* %x to i64
        ret i64 %y
}

define i64 @sizeof2()
{
        %x = add i64 0, ptrtoint (i64* getelementptr(i64* null, i64 1) to i64)
        ret i64 %x
}

